package com.sc.nft.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.*;

@Data
public class ExternalLinkSaveAdminDTO {

    @ApiModelProperty("dao表id")
    @NotNull(message = "请求参数daoId不能为空")
    private Long daoId;

    @ApiModelProperty("外链iconId")
    @NotNull(message = "请求参数iconId不能为空")
    private Long iconId;

    @ApiModelProperty("外链转跳地址")
    //@NotBlank(message = "请求参数url不能为空")
    private String url;

    @ApiModelProperty("排序,越大越靠前")
    @NotNull(message = "请求参数sort不能为空")
    @Range(min = 1, max = 99999999999L, message = "长度超出最大限制")
    private Integer sort;

    @ApiModelProperty("0:跳转页面 1:跳转app")
    @NotNull(message = "请求参数type不能为空")
    private Integer type;

    @ApiModelProperty("是否需要验签")
    private Boolean isSign = Boolean.FALSE;

    @ApiModelProperty("appId")
    private String appId;

}
